<?php
namespace app\index\controller;

use think\Controller;
use ArrayList;

class Test extends Controller
{

    public function index()
    {
        $list = ['thinkphp','thinkphp','onethink','topthink'];
        $arrayList = new ArrayList($list);
        $arrayList->add('kancloud');
        $arrayList->unique();
        echo $arrayList->toJson() ;
    }



}